package com.ji.gametest.Impl;



import com.ji.gametest.interfaceDefine.ComputerOperation;

import java.util.concurrent.ThreadLocalRandom;


public class ComputerOperationImpl implements ComputerOperation {

    @Override
    public int[] computerRandomGenerate(int num) {
        int[] computer = new int[num];
        for(int i = 0; i < num; i++){
            computer[i] = ThreadLocalRandom.current().nextInt(3);
        }
        return computer;
    }
}
